local CommonOHOH = _G.CommonOHOH;
local M = CommonOHOH.class.new(script, script.Parent.base,script.Parent.Name);
-- local monster_cfg = CommonOHOH.config.Monster
local MonsterTool=CommonOHOH.load.MonsterTool()

function M.new(...)
	return M(...);
end;

function M.ctor(self,obj,ballte,...)


    M.super.ctor(self,obj,ballte,...);

    -- local id=self.attribute.CfgId
    -- local levelId=self.attribute.LvId
    local cfg=MonsterTool.GetCfgByMid(self.attribute.MId)
    self:InitAttribute(cfg.drop,cfg.walkSpeed)
    self.cfg=cfg

    self:AddPrivateComponentByFolder(script.Parent.cli)

	self.SynTool=_G.client.local_player:GetComponent(_G.CommonOHOH.load.Common_ActionSynchronize());

end;

-- 获取配置表数据
function M.GetCfg(self)
    return  self.cfg
end



function M.dtor(self)
	M.super.dtor(self);
end;


return M
